load("//llvm:lit_test.bzl", "lit_test")

licenses(["notice"])

package(default_visibility = ["//visibility:public"])

[
    lit_test(
        name = "%s.test" % src,
        srcs = [src],
        data = glob([
            "Parser/include/**",
            "CodeGen/MLIR/include/**",
            "CodeGen/CPP/include/**",
        ]) + [
            "//mlir/test:lit_data",
            "//mlir:mlir-pdll",
            "//mlir:include/mlir/IR/OpBase.td",
            "//mlir:include/mlir/IR/DialectBase.td",
        ],
    )
    for src in glob(
        include = ["**/*.pdll"],
        exclude = ["Parser/include/included.pdll"],
    )
]
